<%--
  Created by IntelliJ IDEA.
  User: jijunxiang
  Date: 2021/11/25
  Time: 13:24
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" isELIgnored="false"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<html>
<head>
    <title>查询余额</title>
</head>
<body>
<%
    int money = (Integer) session.getAttribute("money");
    if (money == -1){
        out.print("<script>alert(\"因网络问题查询错误，请稍后再试！！！\");" +
                "window.location='" +
                request.getContextPath() +
                "/management.jsp'</script>");
    }else {
        out.print("<script>" +
                "alert(\"查询成功，您的余额为" +money+
                "元\");" +
                "window.location='" +
                request.getContextPath() +
                "/management2.jsp'</script>");
    }
%>
</body>
</html>
